package cn.hnwlgc.mapper;

import cn.hnwlgc.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TagMapper {

    @Select("select * from t_tag")
    List<Tag> list();

    @Select("select * from t_tag where id = #{id}")
    Tag getById(Integer id);
}
